package com.yt.system.service.impl;

import com.yt.system.dao.GroupHistoryMapper;
import com.yt.system.domain.GroupHistory;
import com.yt.system.service.GroupHistoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class GroupHistoryServiceImpl implements GroupHistoryService {
    @Autowired
    GroupHistoryMapper groupHistoryMapper;

    @Override
    public List<GroupHistory> selectByGid(Integer gid) {
        return groupHistoryMapper.selectByGid(gid);
    }

    @Override
    public List<GroupHistory> selectAllGroupHistory() {
        return groupHistoryMapper.selectAllGroupHistory();
    }

    @Override
    public int insertGroupHistory(GroupHistory groupHistory) {
        return groupHistoryMapper.insertGroupHistory(groupHistory);
    }

    @Override
    public List<GroupHistory> selectWeekGroupHistory(Map map) {
        return groupHistoryMapper.selectWeekGroupHistory(map);
    }

}
